package com.hwadeefsc.springboot.service;

import com.hwadeefsc.springboot.entity.StudentActivities;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (StudentActivities)表服务接口
 *
 * @author makejava
 * @since 2024-07-09 21:43:27
 */
public interface StudentActivitiesService {

    /**
     * 通过ID查询单条数据
     *
     * @param activityId 主键
     * @return 实例对象
     */
    StudentActivities queryById(Integer activityId);

    /**
     * 分页查询
     *
     * @param studentActivities 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<StudentActivities> queryByPage(StudentActivities studentActivities, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param studentActivities 实例对象
     * @return 实例对象
     */
    StudentActivities insert(StudentActivities studentActivities);

    /**
     * 修改数据
     *
     * @param studentActivities 实例对象
     * @return 实例对象
     */
    StudentActivities update(StudentActivities studentActivities);

    /**
     * 通过主键删除数据
     *
     * @param activityId 主键
     * @return 是否成功
     */
    boolean deleteById(Integer activityId);

    List<StudentActivities> getAllQuery();

}
